public abstract class BaseSort {
    protected int[] intArray = new int[] { 1, 23, 45, 22, 4, 34, 22, 456, 2, 34, 5, 98, 34, 21, 18 };

    protected abstract void sortMethod(int[] intArray);

    protected void print() {
        for (int i = 0; i < intArray.length; i++) {
            System.out.print(intArray[i] + " ");
        }
    }
}
